116. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:00:45 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

116.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/code/Smartwave/Porto/BlockTemplate.php2015-11-29 20:14:34 +0000
2Porto v4.0.5/Porto Theme/app/code/Smartwave/Porto/BlockTemplate.php2015-11-29 20:14:34 +0000

116.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged190
Changed00
Inserted00
Removed00

116.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

116.4 Active regular expressions

No regular expressions were active.

116.5 Comparison detail

1 <?php 1 <?php
2  2 
3 namespace Smartwave\Porto\Block; 3 namespace Smartwave\Porto\Block;
4  4 
5 class Template extends \Magento\Framework\View\Element\Template { 5 class Template extends \Magento\Framework\View\Element\Template {
6     public $_coreRegistry; 6     public $_coreRegistry;
7      7     
8     public function __construct( 8     public function __construct(
9         \Magento\Backend\Block\Template\Context $context, 9         \Magento\Backend\Block\Template\Context $context,
10         \Magento\Framework\Registry $coreRegistry, 10         \Magento\Framework\Registry $coreRegistry,
11         array $data = [] 11         array $data = []
12     ) { 12     ) {
13         $this->_coreRegistry = $coreRegistry; 13         $this->_coreRegistry = $coreRegistry;
14         parent::__construct($context, $data); 14         parent::__construct($context, $data);
15     } 15     }
16      16     
17     public function getConfig($config_path, $storeCode = null) 17     public function getConfig($config_path, $storeCode = null)
18     { 18     {
19         return $this->_scopeConfig->getValue( 19         return $this->_scopeConfig->getValue(
20             $config_path, 20             $config_path,
21             \Magento\Store\Model\ScopeInterface::SCOPE_STORE, 21             \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
22             $storeCode 22             $storeCode
23         ); 23         );
24     } 24     }
25      25     
26     public function getFooterLogoSrc(){ 26     public function getFooterLogoSrc(){
27         $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Logo::UPLOAD_DIR; 27         $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Logo::UPLOAD_DIR;
28         $storeLogoPath = $this->_scopeConfig->getValue( 28         $storeLogoPath = $this->_scopeConfig->getValue(
29             'porto_settings/footer/footer_logo_src', 29             'porto_settings/footer/footer_logo_src',
30             \Magento\Store\Model\ScopeInterface::SCOPE_STORE 30             \Magento\Store\Model\ScopeInterface::SCOPE_STORE
31         ); 31         );
32         $path = $folderName . '/' . $storeLogoPath; 32         $path = $folderName . '/' . $storeLogoPath;
33         $logoUrl = $this->_urlBuilder 33         $logoUrl = $this->_urlBuilder
34                 ->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $path; 34                 ->getBaseUrl(['_type' => \Magento\Framework\UrlInterface::URL_TYPE_MEDIA]) . $path;
35         return $logoUrl; 35         return $logoUrl;
36     } 36     }
37      37     
38     public function isHomePage() 38     public function isHomePage()
39     { 39     {
40         $currentUrl = $this->getUrl('', ['_current' => true]); 40         $currentUrl = $this->getUrl('', ['_current' => true]);
41         $urlRewrite = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); 41         $urlRewrite = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);
42         return $currentUrl == $urlRewrite; 42         return $currentUrl == $urlRewrite;
43     } 43     }
44 } 44 }
45 ?> 45 ?>